import i18n from './lang'
import { createApp } from 'vue'
import pinia from './stores'
import App from './App.vue'
import router from './router'
import 'virtual:uno.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 通过环境变量控制是否启用 vConsole
if (import.meta.env.VITE_USE_VCONSOLE === 'true') {
  import('./utils/vconsole')
}

const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(i18n)
app.use(ElementPlus)
app.mount('#app')
